﻿using UnityEngine;
using System.Collections;

public class RightPaddle : MonoBehaviour {
	[HideInInspector]
	public Rigidbody2D
		hull;
	
	// Use this for initialization
	void Start ()
	{
		hull = GetComponent<Rigidbody2D> ();
	}
	
	// Update is called once per frame
	void Update ()
	{
		if (Input.GetButton ("Fire2")) {
			hull.angularVelocity = -1000;
		} else {
			hull.angularVelocity = 1000;
		}
		
	}
}
